import { Emitter } from "../event/EventKit";
import { HotUpdateInfo } from "./HotUpdateInfo";

let emitter = new Emitter();

export namespace HotUpdateEvent {
    /**热更完成,或者没有热更，或者热更失败，通知场景继续加载 */
    export const ON_HOT_UPDATE_DONE = emitter.createEvent<() => void>();
    /**大版本更新 */
    export const ON_NEW_APP_VERSION = emitter.createEvent<(hotInfo: HotUpdateInfo) => void>();
}